Automatic source code summarization with graph attention networks
نویسندگان
چکیده
Source code summarization aims to generate concise descriptions for snippets in a natural language, thereby facilitates program comprehension and software maintenance. In this paper, we propose novel approach– GSCS –to automatically summaries Java methods, which leverages both semantic structural information of the snippets. To end, utilizes Graph Attention Networks process tokenized abstract syntax tree program, employ multi-head attention mechanism learn node features diverse representation sub-spaces, aggregate by assigning different weights its neighbor nodes. further harnesses an additional RNN-based sequence model obtain optimizes structure combining output with transformed embedding layer. We evaluate our approach on two widely-adopted datasets; experiment results confirm that outperforms state-of-the-art baselines. • Highlight importance Design neural network architecture task. New data wrangling methods summarization. Provide open-source implementation datasets
منابع مشابه
A Convolutional Attention Network for Extreme Summarization of Source Code
Attention mechanisms in neural networks have proved useful for problems in which the input and output do not have fixed dimension. Often there exist features that are locally translation invariant and would be valuable for directing the model’s attention, but previous attentional architectures are not constructed to learn such features specifically. We introduce an attentional neural network th...
متن کاملGraph Hybrid Summarization
One solution to process and analysis of massive graphs is summarization. Generating a high quality summary is the main challenge of graph summarization. In the aims of generating a summary with a better quality for a given attributed graph, both structural and attribute similarities must be considered. There are two measures named density and entropy to evaluate the quality of structural and at...
متن کاملAutomatic source code reduction
The aim of this paper is to introduce Reductor, a program that automatically removes unused parts of the source code of valid programs written in the Mercury language. Reductor implements two main kinds of reductions: statical reduction and dynamical reduction. In the statical reduction, Reductor exploits semantic analysis of the Melbourne Mercury Compiler to find routines which can be removed ...
متن کاملAutomatic Video Summarization by Graph Modeling
We propose a unified approach for summarization based on the analysis of video structures and video highlights. Our approach emphasizes both the content balance and perceptual quality of a summary. Normalized cut algorithm is employed to globally and optimally partition a video into clusters. A motion attention model based on human perception is employed to compute the perceptual quality of sho...
متن کاملA survey on Automatic Text Summarization
Text summarization endeavors to produce a summary version of a text, while maintaining the original ideas. The textual content on the web, in particular, is growing at an exponential rate. The ability to decipher through such massive amount of data, in order to extract the useful information, is a major undertaking and requires an automatic mechanism to aid with the extant repository of informa...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
ژورنال
عنوان ژورنال: Journal of Systems and Software
سال: 2022
ISSN: ['0164-1212', '1873-1228']
DOI: https://doi.org/10.1016/j.jss.2022.111257